puts "Session Repair"
puts "--------------"
puts "..."

f=File.new("../session.txt","w")

begin
f.write("\fOFF")
puts "Repair Successful"
rescue
puts "Repair Failed"
print "Error: "+$!
puts "\nSecond Attempt..."
begin
rescue
puts "Second Attempt Failed."
end
ensure
f.close
puts
puts "Press ENTER to continue..."
gets
end